package com.zz.framework.core.base

import android.app.Dialog
import android.content.DialogInterface
import android.os.Bundle
import android.view.View
import androidx.fragment.app.DialogFragment
import com.zz.framework.core.base.BaseViewModelDialogFragment

/**
 * Copyright © 2020 zanezhao All rights reserved.
 * Created on 2020/3/19 5:46 PM.
 * @version: V1.0
 */
interface DialogFragmentInterface {
    interface DialogClickListener {
        fun onClick(dialog: BaseViewModelDialogFragment, which: Int, data: Any?)
    }

    interface DialogCreateListener {
        fun create(savedInstanceState: Bundle?): Dialog
    }

    interface DialogSelectListener<T> {
        fun onClick(dialog: DialogFragment, which: Int, data: T?)
    }

    interface DialogDismissListener {
        fun onDismiss(dialog: DialogInterface?)
    }

    interface DialogViewCreatedListener {
        fun onViewCreated(view: View, savedInstanceState: Bundle?)
    }
}